package harima.collision.bodies;

public class PathNode {

	
	
	public PathNode(Direction _direction, int steps) 
	{
		moveDirection = _direction;
		stepsCount = steps;
	}

	Direction moveDirection;
	int stepsCount;
	int currentStep;
	
	public PathNode nextNode;
	
	
	public void step()
	{
		currentStep++;
	}
	
	public boolean reachedEnd()
	{
		boolean reachedEnd = currentStep >= stepsCount;; 
		if(reachedEnd)
		{
			currentStep = 0;
		}
		return reachedEnd;
	}

}
